package com.study.designPattern.structure.proxy;
/**
 * @author ysy
 * @version 1.0
 * @Title: BenzCar
 * @Note <b>ProjectName:</b> cusc-venus
 * <br><b>PackageName:</b> com.cusc.venus.acc.center.util.designPattern.proxy
 * <br><b>ClassName:</b>
 * <br><b>Date:</b>
 *
 */
public class RealCar implements Car{
    private String brand;

    public RealCar(String brand) {
        this.brand = brand;
        loadFromDisk(brand);
    }
    private void loadFromDisk(String brand){
        System.out.println("Loading " + brand);
    }
    @Override
    public void drive() {
        System.out.println(brand + " is driving!!");
    }
}
